// 生成最近30天的销售数据
const generateSalesData = () => {
  const data = []
  const now = new Date()
  for (let i = 29; i >= 0; i--) {
    const date = new Date(now)
    date.setDate(date.getDate() - i)
    data.push({
      date: date.toLocaleDateString('zh-CN', { month: 'numeric', day: 'numeric' }),
      value: Math.floor(Math.random() * 5000) + 5000 // 5000-10000之间的随机数
    })
  }
  return data
}

export const salesData = generateSalesData() 